package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationSafetyCardRecordDao;
import com.site.wisdom_construction.entity.personnelModule.EducationSafetyCardRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/21
 * @Description
 */
@Service
public class EducationSafetyCardRecordService implements EducationSafetyCardRecordDao {
    @Autowired
    private EducationSafetyCardRecordDao educationSafetyCardRecordDao;

    @Override
    public int insertEducationSafetyCardRecord(Map map) {
        return educationSafetyCardRecordDao.insertEducationSafetyCardRecord(map);
    }

    @Override
    public int deleteEducationSafetyCardRecord(Map map) {
        return educationSafetyCardRecordDao.deleteEducationSafetyCardRecord(map);
    }

    @Override
    public int updateEducationSafetyCardRecord(Map map) {
        return educationSafetyCardRecordDao.updateEducationSafetyCardRecord(map);
    }

    @Override
    public List<EducationSafetyCardRecord> findEducationSafetyCardRecordByPage(Map map) {
        return educationSafetyCardRecordDao.findEducationSafetyCardRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationSafetyCardRecordDao.Total(map);
    }

    @Override
    public EducationSafetyCardRecord findEducationSafetyCardRecordById(Map map) {
        return educationSafetyCardRecordDao.findEducationSafetyCardRecordById(map);
    }

    @Override
    public List<EducationSafetyCardRecord> findEducationSafetyCardRecordByWorkerCard(Map map) {
        return educationSafetyCardRecordDao.findEducationSafetyCardRecordByWorkerCard(map);
    }

    @Override
    public List<EducationSafetyCardRecord> findEducationSafetyCardRecordByManagerialId(Map map) {
        return educationSafetyCardRecordDao.findEducationSafetyCardRecordByManagerialId(map);
    }

    @Override
    public long TotalByManagerialId(Map map) {
        return educationSafetyCardRecordDao.TotalByManagerialId(map);
    }
}
